package com.weiyuwqj.server.service.sys.impl;

import com.weiyuwqj.server.mapper.SysConfigTicketUserMapper;
import com.weiyuwqj.api.service.SysConfigTicketUserService;
import com.weiyuwqj.server.service.base.BaseServiceImpl;
import com.weiyuwqj.api.model.SysConfigTicketUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by huzj on 2016/8/26.
 */
@Service("ticketUserService")
public class SysConfigTicketUserServiceImpl extends BaseServiceImpl<SysConfigTicketUser> implements SysConfigTicketUserService{

    @Autowired
    SysConfigTicketUserMapper ticketUserMapper;

    @Override
    public void insert(List<SysConfigTicketUser> ticketUserList, Integer ruleId) {
        for (SysConfigTicketUser ticketUser :ticketUserList){
            ticketUser.setRuleId(ruleId);
        }
        int a=ticketUserMapper.insertBatch(ticketUserList);
    }
}
